<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.net.http.HttpParams</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.net.http.HttpParams";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.net.http.HttpParams.html" class="symbol">tango.net.http.HttpParams</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: April 2004
<p class="sec_header">Author:</p>Kris
<dl>
<dt class="decl">class <a class="symbol _class" name="HttpParams" href="./htmlsrc/tango.net.http.HttpParams.html#L40" kind="class" beg="40" end="192">HttpParams</a> : HttpTokens, HttpParamsView; <a title="Permalink to this symbol" href="#HttpParams" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L40">#</a></dt>
<dd class="ddef">
<div class="summary">Maintains a set of query parameters, parsed from an HTTP request.
        Use HttpParams instead for output parameters.</div>
Note that these input params may have been encoded by the user-
        agent. Unfortunately there has been little consensus on what that
        encoding should be (especially regarding GET query-params). With
        luck, that will change to a consistent usage of UTF-8 within the 
        near future.
<dl>
<dt class="decl"><a class="symbol _ctor" name="HttpParams.this" href="./htmlsrc/tango.net.http.HttpParams.html#L54" kind="ctor" beg="54" end="60">this</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#HttpParams.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L54">#</a></dt>
<dd class="ddef">
<div class="summary">Construct parameters by telling the HttpStack that
                name/value pairs are seperated by a '=' character.</div></dd>
<dt class="decl"><a class="symbol _ctor" name="HttpParams.this:2" href="./htmlsrc/tango.net.http.HttpParams.html#L68" kind="ctor" beg="68" end="72">this</a><span class="params">(IBuffer <em>output</em>)</span>; <a title="Permalink to this symbol" href="#HttpParams.this:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L68">#</a></dt>
<dd class="ddef">
<div class="summary">Construct output params upon the provided IBuffer</div></dd>
<dt class="decl">uint <a class="symbol _function" name="HttpParams.size" href="./htmlsrc/tango.net.http.HttpParams.html#L80" kind="function" beg="80" end="83">size</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#HttpParams.size" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L80">#</a></dt>
<dd class="ddef">
<div class="summary">Return the number of headers</div></dd>
<dt class="decl">void <a class="symbol _function" name="HttpParams.parse" href="./htmlsrc/tango.net.http.HttpParams.html#L92" kind="function" beg="92" end="99">parse</a><span class="params">(IBuffer <em>input</em>)</span>; <a title="Permalink to this symbol" href="#HttpParams.parse" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L92">#</a></dt>
<dd class="ddef">
<div class="summary">Read all query parameters. Everything is mapped rather 
                than being allocated &amp; copied</div></dd>
<dt class="decl">void <a class="symbol _function" name="HttpParams.add" href="./htmlsrc/tango.net.http.HttpParams.html#L107" kind="function" beg="107" end="110">add</a><span class="params">(char[] <em>name</em>, char[] <em>value</em>)</span>; <a title="Permalink to this symbol" href="#HttpParams.add" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L107">#</a></dt>
<dd class="ddef">
<div class="summary">Add a name/value pair to the query list</div></dd>
<dt class="decl">void <a class="symbol _function" name="HttpParams.addInt" href="./htmlsrc/tango.net.http.HttpParams.html#L118" kind="function" beg="118" end="121">addInt</a><span class="params">(char[] <em>name</em>, int <em>value</em>)</span>; <a title="Permalink to this symbol" href="#HttpParams.addInt" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L118">#</a></dt>
<dd class="ddef">
<div class="summary">Add a name/integer pair to the query list</div></dd>
<dt class="decl">void <a class="symbol _function" name="HttpParams.addDate" href="./htmlsrc/tango.net.http.HttpParams.html#L130" kind="function" beg="130" end="133">addDate</a><span class="params">(char[] <em>name</em>, Time <em>value</em>)</span>; <a title="Permalink to this symbol" href="#HttpParams.addDate" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L130">#</a></dt>
<dd class="ddef">
<div class="summary">Add a name/date(long) pair to the query list</div></dd>
<dt class="decl">char[] <a class="symbol _function" name="HttpParams.get" href="./htmlsrc/tango.net.http.HttpParams.html#L142" kind="function" beg="142" end="145">get</a><span class="params">(char[] <em>name</em>, char[] <em>ret</em> = null)</span>; <a title="Permalink to this symbol" href="#HttpParams.get" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L142">#</a></dt>
<dd class="ddef">
<div class="summary">Return the value of the provided header, or null if the
                header does not exist</div></dd>
<dt class="decl">int <a class="symbol _function" name="HttpParams.getInt" href="./htmlsrc/tango.net.http.HttpParams.html#L154" kind="function" beg="154" end="157">getInt</a><span class="params">(char[] <em>name</em>, int <em>ret</em> = -1)</span>; <a title="Permalink to this symbol" href="#HttpParams.getInt" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L154">#</a></dt>
<dd class="ddef">
<div class="summary">Return the integer value of the provided header, or the 
                provided default-value if the header does not exist</div></dd>
<dt class="decl">Time <a class="symbol _function" name="HttpParams.getDate" href="./htmlsrc/tango.net.http.HttpParams.html#L166" kind="function" beg="166" end="169">getDate</a><span class="params">(char[] <em>name</em>, Time <em>ret</em> = Time.epoch)</span>; <a title="Permalink to this symbol" href="#HttpParams.getDate" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L166">#</a></dt>
<dd class="ddef">
<div class="summary">Return the date value of the provided header, or the 
                provided default-value if the header does not exist</div></dd>
<dt class="decl">void <a class="symbol _function" name="HttpParams.write" href="./htmlsrc/tango.net.http.HttpParams.html#L177" kind="function" beg="177" end="180">write</a><span class="params">(IWriter <em>writer</em>)</span>; <a title="Permalink to this symbol" href="#HttpParams.write" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L177">#</a></dt>
<dd class="ddef">
<div class="summary">Output the token list to the provided writer</div></dd>
<dt class="decl">void <a class="symbol _function" name="HttpParams.produce" href="./htmlsrc/tango.net.http.HttpParams.html#L188" kind="function" beg="188" end="191">produce</a><span class="params">(void delegate (void[]) <em>consume</em>, char[] <em>eol</em>)</span>; <a title="Permalink to this symbol" href="#HttpParams.produce" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.http.HttpParams.html#L188">#</a></dt>
<dd class="ddef">
<div class="summary">Output the param list to the provided consumer</div></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2004 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:03:57 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>